{
  "__inputs": [],
  "__requires": [
    {
    "type": "grafana",
    "id": "grafana",
    "name": "Grafana",
    "version": "5.1.0-beta1"
    },
    {
    "type": "panel",
    "id": "graph",
    "name": "Graph",
    "version": "5.0.0"
    },
    {
    "type": "panel",
    "id": "singlestat",
    "name": "Singlestat",
    "version": "5.0.0"
    }
  ],
  "annotations": {
    "list": [ ]
  },
  "editable": false,
  "gnetId": null,
  "graphTooltip": 1,
  "hideControls": false,
  "links": [
    {
    "asDropdown": true,
    "icon": "external link",
    "includeVars": true,
    "keepTime": true,
    "tags": [
      "loki"
    ],
    "targetBlank": false,
    "title": "Loki Dashboards",
    "type": "dashboards"
    }
  ],
  "refresh": "30s",
  "rows": [
    {
    "collapse": false,
    "height": "250px",
    "panels": [
      {
        "aliasColors": {
          "1xx": "#EAB839",
            "2xx": "#7EB26D",
            "3xx": "#6ED0E0",
            "4xx": "#EF843C",
            "5xx": "#E24D42",
            "error": "#E24D42",
            "success": "#7EB26D"
          },
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$ds_prometheus",
          "fill": 10,
          "id": 1,
          "legend": {
            "avg": false,
            "current": false,
            "max": false,
            "min": false,
            "show": true,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 0,
          "links": [ ],
          "nullPointMode": "null as zero",
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [ ],
          "spaceLength": 10,
          "span": 6,
          "stack": true,
          "steppedLine": true,
          "targets": [
            {
            "expr": "sum by (status) (\n  label_replace(label_replace(rate(loki_request_duration_seconds_count{job=\"loki\", route=~\"loki_api_v1_series|api_prom_series|api_prom_query|api_prom_label|api_prom_label_name_values|loki_api_v1_query|loki_api_v1_query_range|loki_api_v1_labels|loki_api_v1_label_name_values\"}[$__rate_interval]),\n  \"status\", \"${1}xx\", \"status_code\", \"([0-9])..\"),\n  \"status\", \"${1}\", \"status_code\", \"([a-z]+)\"))\n",
            "format": "time_series",
            "intervalFactor": 1,
            "legendFormat": "{{status}}",
            "refId": "A",
            "step": 10
            }
          ],
          "thresholds": [ ],
          "timeFrom": null,
          "timeShift": null,
          "title": "QPS",
          "description": "Queries duration per second.",
          "tooltip": {
            "shared": true,
            "sort": 2,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": [ ]
          },
          "yaxes": [
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": 0,
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": false
            }
          ]
        },
        {
          "aliasColors": { },
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$ds_prometheus",
          "fill": 1,
          "id": 2,
          "legend": {
            "avg": false,
            "current": false,
            "max": false,
            "min": false,
            "show": true,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 1,
          "links": [ ],
          "nullPointMode": "null as zero",
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [ ],
          "spaceLength": 10,
          "span": 6,
          "stack": false,
          "steppedLine": true,
          "targets": [
            {
              "expr": "histogram_quantile(0.99, sum by (le,route) (loki_request_duration_seconds_bucket{job=\"loki\", route=~\"loki_api_v1_series|api_prom_series|api_prom_query|api_prom_label|api_prom_label_name_values|loki_api_v1_query|loki_api_v1_query_range|loki_api_v1_labels|loki_api_v1_label_name_values\"})) * 1e3",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "{{ route }} 99th Percentile",
              "refId": "A",
              "step": 10
            },
            {
              "expr": "histogram_quantile(0.50, sum by (le,route) (loki_request_duration_seconds_bucket{job=\"loki\", route=~\"loki_api_v1_series|api_prom_series|api_prom_query|api_prom_label|api_prom_label_name_values|loki_api_v1_query|loki_api_v1_query_range|loki_api_v1_labels|loki_api_v1_label_name_values\"})) * 1e3",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "{{ route }} 50th Percentile",
              "refId": "B",
              "step": 10
            },
            {
              "expr": "1e3 * sum(loki_request_duration_seconds_sum{job=\"loki\", route=~\"loki_api_v1_series|api_prom_series|api_prom_query|api_prom_label|api_prom_label_name_values|loki_api_v1_query|loki_api_v1_query_range|loki_api_v1_labels|loki_api_v1_label_name_values\"}) by (route)  / sum(loki_request_duration_seconds_count{job=\"loki\", route=~\"loki_api_v1_series|api_prom_series|api_prom_query|api_prom_label|api_prom_label_name_values|loki_api_v1_query|loki_api_v1_query_range|loki_api_v1_labels|loki_api_v1_label_name_values\"}) by (route) ",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "{{ route }} Average",
              "refId": "C",
              "step": 10
            }
          ],
          "thresholds": [ ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Latency",
          "description": "Time (in seconds) spent serving HTTP Query requests per request.",
          "tooltip": {
            "shared": true,
            "sort": 2,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": [ ]
          },
          "yaxes": [
            {
              "format": "ms",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": 0,
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": false
            }
          ]
        }
      ],
      "repeat": null,
      "repeatIteration": null,
      "repeatRowId": null,
      "showTitle": true,
      "title": "Read Path",
      "titleSize": "h6"
      },
      {
      "collapse": false,
      "height": "250px",
      "panels": [
        {
          "aliasColors": {
            "1xx": "#EAB839",
            "2xx": "#7EB26D",
            "3xx": "#6ED0E0",
            "4xx": "#EF843C",
            "5xx": "#E24D42",
            "error": "#E24D42",
            "success": "#7EB26D"
          },
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$ds_prometheus",
          "fill": 10,
          "id": 3,
          "legend": {
            "avg": false,
            "current": false,
            "max": false,
            "min": false,
            "show": true,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 0,
          "links": [ ],
          "nullPointMode": "null as zero",
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [ ],
          "spaceLength": 10,
          "span": 6,
          "stack": true,
          "steppedLine": true,
          "targets": [
            {
            "expr": "sum by (status) (\n  label_replace(label_replace(rate(loki_boltdb_shipper_request_duration_seconds_count{job=\"loki\", operation=\"Shipper.Query\"}[$__rate_interval]),\n  \"status\", \"${1}xx\", \"status_code\", \"([0-9])..\"),\n  \"status\", \"${1}\", \"status_code\", \"([a-z]+)\"))\n",
            "format": "time_series",
            "intervalFactor": 1,
            "legendFormat": "{{status}}",
            "refId": "A",
            "step": 10
            }
          ],
          "thresholds": [ ],
          "timeFrom": null,
          "timeShift": null,
          "title": "QPS",
          "description": "Queries duration per second using boltdb shipper for Query payload.",
          "tooltip": {
            "shared": true,
            "sort": 2,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": [ ]
          },
          "yaxes": [
            {
            "format": "short",
            "label": null,
            "logBase": 1,
            "max": null,
            "min": 0,
            "show": true
            },
            {
            "format": "short",
            "label": null,
            "logBase": 1,
            "max": null,
            "min": null,
            "show": false
            }
          ]
        },
        {
          "aliasColors": { },
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$ds_prometheus",
          "fill": 1,
          "id": 4,
          "legend": {
            "avg": false,
            "current": false,
            "max": false,
            "min": false,
            "show": true,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 1,
          "links": [ ],
          "nullPointMode": "null as zero",
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [ ],
          "spaceLength": 10,
          "span": 6,
          "stack": false,
          "steppedLine": true,
          "targets": [
            {
            "expr": "histogram_quantile(0.99, sum(rate(loki_boltdb_shipper_request_duration_seconds_bucket{job=\"loki\", operation=\"Shipper.Query\"}[$__rate_interval])) by (le)) * 1e3",
            "format": "time_series",
            "intervalFactor": 1,
            "legendFormat": "99th Percentile",
            "refId": "A",
            "step": 10
            },
            {
            "expr": "histogram_quantile(0.50, sum(rate(loki_boltdb_shipper_request_duration_seconds_bucket{job=\"loki\", operation=\"Shipper.Query\"}[$__rate_interval])) by (le)) * 1e3",
            "format": "time_series",
            "intervalFactor": 1,
            "legendFormat": "50th Percentile",
            "refId": "B",
            "step": 10
            },
            {
            "expr": "sum(rate(loki_boltdb_shipper_request_duration_seconds_sum{job=\"loki\", operation=\"Shipper.Query\"}[$__rate_interval])) * 1e3 / sum(rate(loki_boltdb_shipper_request_duration_seconds_count{job=\"loki\", operation=\"Shipper.Query\"}[$__rate_interval]))",
            "format": "time_series",
            "intervalFactor": 1,
            "legendFormat": "Average",
            "refId": "C",
            "step": 10
            }
          ],
          "thresholds": [ ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Latency",
          "description": "Time (in seconds) spent serving requests when using boltdb shipper for Query payload per request.",
          "tooltip": {
            "shared": true,
            "sort": 2,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": [ ]
          },
          "yaxes": [
            {
            "format": "ms",
            "label": null,
            "logBase": 1,
            "max": null,
            "min": 0,
            "show": true
            },
            {
            "format": "short",
            "label": null,
            "logBase": 1,
            "max": null,
            "min": null,
            "show": false
            }
          ]
        }
      ],
      "repeat": null,
      "repeatIteration": null,
      "repeatRowId": null,
      "showTitle": true,
      "title": "BoltDB Query Shipper",
      "titleSize": "h6"
    },
    {
      "collapse": false,
      "height": "250px",
      "panels": [
        {
          "aliasColors": {
            "1xx": "#EAB839",
            "2xx": "#7EB26D",
            "3xx": "#6ED0E0",
            "4xx": "#EF843C",
            "5xx": "#E24D42",
            "error": "#E24D42",
            "success": "#7EB26D"
          },
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$ds_prometheus",
          "fill": 10,
          "id": 5,
          "legend": {
            "avg": false,
            "current": false,
            "max": false,
            "min": false,
            "show": true,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 0,
          "links": [ ],
          "nullPointMode": "null as zero",
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [ ],
          "spaceLength": 10,
          "span": 6,
          "stack": true,
          "steppedLine": true,
          "targets": [
            {
              "expr": "sum by (status) (\n  label_replace(label_replace(rate(loki_request_duration_seconds_count{job=\"loki\", route=~\"api_prom_push|loki_api_v1_push|/httpgrpc.HTTP/Handle\"}[$__rate_interval]),\n  \"status\", \"${1}xx\", \"status_code\", \"([0-9])..\"),\n  \"status\", \"${1}\", \"status_code\", \"([a-z]+)\"))\n",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "{{status}}",
              "refId": "A",
              "step": 10
            }
          ],
          "thresholds": [ ],
          "timeFrom": null,
          "timeShift": null,
          "title": "QPS",
          "description": "Time (in seconds) spent serving HTTP Push requests.",
          "tooltip": {
            "shared": true,
            "sort": 2,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": [ ]
          },
          "yaxes": [
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": 0,
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": false
            }
          ]
        },
        {
          "aliasColors": { },
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$ds_prometheus",
          "fill": 1,
          "id": 6,
          "legend": {
            "avg": false,
            "current": false,
            "max": false,
            "min": false,
            "show": true,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 1,
          "links": [ ],
          "nullPointMode": "null as zero",
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [ ],
          "spaceLength": 10,
          "span": 6,
          "stack": false,
          "steppedLine": true,
          "targets": [
            {
              "expr": "histogram_quantile(0.99, sum by (le) (loki_request_duration_seconds_bucket{job=\"loki\", route=~\"api_prom_push|loki_api_v1_push|/httpgrpc.HTTP/Handle\"})) * 1e3",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "99th Percentile",
              "refId": "A",
              "step": 10
            },
            {
              "expr": "histogram_quantile(0.50, sum by (le) (loki_request_duration_seconds_bucket{job=\"loki\", route=~\"api_prom_push|loki_api_v1_push|/httpgrpc.HTTP/Handle\"})) * 1e3",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "50th Percentile",
              "refId": "B",
              "step": 10
            },
            {
              "expr": "1e3 * sum(loki_request_duration_seconds_sum{job=\"loki\", route=~\"api_prom_push|loki_api_v1_push|/httpgrpc.HTTP/Handle\"}) / sum(loki_request_duration_seconds_count{job=\"loki\", route=~\"api_prom_push|loki_api_v1_push|/httpgrpc.HTTP/Handle\"})",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "Average",
              "refId": "C",
              "step": 10
            }
          ],
          "thresholds": [ ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Latency",
          "description": "Time (in seconds) spent serving HTTP Push requests per request.",
          "tooltip": {
            "shared": true,
            "sort": 2,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": [ ]
          },
          "yaxes": [
            {
              "format": "ms",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": 0,
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": false
            }
          ]
        }
      ],
      "repeat": null,
      "repeatIteration": null,
      "repeatRowId": null,
      "showTitle": true,
      "title": "Write Path",
      "titleSize": "h6"
    },
    {
      "collapse": false,
      "height": "250px",
      "panels": [
        {
          "aliasColors": {
            "1xx": "#EAB839",
            "2xx": "#7EB26D",
            "3xx": "#6ED0E0",
            "4xx": "#EF843C",
            "5xx": "#E24D42",
            "error": "#E24D42",
            "success": "#7EB26D"
          },
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$ds_prometheus",
          "fill": 10,
          "id": 7,
          "legend": {
            "avg": false,
            "current": false,
            "max": false,
            "min": false,
            "show": true,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 0,
          "links": [ ],
          "nullPointMode": "null as zero",
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [ ],
          "spaceLength": 10,
          "span": 6,
          "stack": true,
          "steppedLine": true,
          "targets": [
            {
              "expr": "sum by (status) (\n  label_replace(label_replace(rate(loki_boltdb_shipper_request_duration_seconds_count{job=\"loki\", operation=\"WRITE\"}[$__rate_interval]),\n  \"status\", \"${1}xx\", \"status_code\", \"([0-9])..\"),\n  \"status\", \"${1}\", \"status_code\", \"([a-z]+)\"))\n",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "{{status}}",
              "refId": "A",
              "step": 10
            }
          ],
          "thresholds": [ ],
          "timeFrom": null,
          "timeShift": null,
          "title": "QPS",
          "description": "Queries duration per second using boltdb shipper for Write operations.",
          "tooltip": {
            "shared": true,
            "sort": 2,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": [ ]
          },
          "yaxes": [
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": 0,
              "show": true
            },
            {
            "format": "short",
            "label": null,
            "logBase": 1,
            "max": null,
            "min": null,
            "show": false
            }
          ]
        },
        {
          "aliasColors": { },
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$ds_prometheus",
          "fill": 1,
          "id": 8,
          "legend": {
            "avg": false,
            "current": false,
            "max": false,
            "min": false,
            "show": true,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 1,
          "links": [ ],
          "nullPointMode": "null as zero",
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [ ],
          "spaceLength": 10,
          "span": 6,
          "stack": false,
          "steppedLine": true,
          "targets": [
            {
              "expr": "histogram_quantile(0.99, sum(rate(loki_boltdb_shipper_request_duration_seconds_bucket{job=\"loki\", operation=\"WRITE\"}[$__rate_interval])) by (le)) * 1e3",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "99th Percentile",
              "refId": "A",
              "step": 10
            },
            {
              "expr": "histogram_quantile(0.50, sum(rate(loki_boltdb_shipper_request_duration_seconds_bucket{job=\"loki\", operation=\"WRITE\"}[$__rate_interval])) by (le)) * 1e3",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "50th Percentile",
              "refId": "B",
              "step": 10
            },
            {
              "expr": "sum(rate(loki_boltdb_shipper_request_duration_seconds_sum{job=\"loki\", operation=\"WRITE\"}[$__rate_interval])) * 1e3 / sum(rate(loki_boltdb_shipper_request_duration_seconds_count{job=\"loki\", operation=\"WRITE\"}[$__rate_interval]))",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "Average",
              "refId": "C",
              "step": 10
            }
          ],
          "thresholds": [ ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Latency",
          "description": "Time (in seconds) spent serving requests when using boltdb shipper for Write operations per request.",
          "tooltip": {
            "shared": true,
            "sort": 2,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": [ ]
          },
          "yaxes": [
            {
              "format": "ms",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": 0,
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": false
            }
          ]
        }
      ],
      "repeat": null,
      "repeatIteration": null,
      "repeatRowId": null,
      "showTitle": true,
      "title": "BoltDB Write Shipper",
      "titleSize": "h6"
    },
    {
      "collapse": false,
      "height": "250px",
      "panels": [
        {
          "aliasColors": { },
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$ds_prometheus",
          "fieldConfig": {
            "defaults": {
            "color": {
              "fixedColor": "blue",
              "mode": "fixed"
            },
            "custom": { },
            "thresholds": {
              "mode": "absolute",
              "steps": [
                {
                  "color": "green",
                  "value": null
                }
              ]
            },
            "unit": "dateTimeFromNow"
            }
          },
          "fill": 1,
          "id": 9,
          "legend": {
            "avg": false,
            "current": false,
            "max": false,
            "min": false,
            "show": true,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 1,
          "links": [ ],
          "nullPointMode": "null as zero",
          "options": {
            "colorMode": "value",
            "graphMode": "area",
            "justifyMode": "auto",
            "orientation": "auto",
            "reduceOptions": {
            "calcs": [
              "lastNotNull"
            ],
            "fields": "",
            "values": false
            },
            "text": { },
            "textMode": "auto"
          },
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [ ],
          "spaceLength": 10,
          "span": 4,
          "stack": false,
          "steppedLine": true,
          "targets": [
            {
              "expr": "loki_boltdb_shipper_compact_tables_operation_last_successful_run_timestamp_seconds{namespace=~\"$namespace\",job=\"loki\"} * 1e3",
              "format": "time_series",
              "instant": true,
              "refId": "A"
            }
          ],
          "thresholds": [ ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Last Compact and Mark Operation Success",
          "description": "Last successful compaction run.",
          "tooltip": {
            "shared": true,
            "sort": 2,
            "value_type": "individual"
          },
          "type": "stat",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": [ ]
          },
          "yaxes": [
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": 0,
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": false
            }
          ]
        },
        {
          "aliasColors": { },
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$ds_prometheus",
          "fill": 1,
          "id": 10,
          "legend": {
            "avg": false,
            "current": false,
            "max": false,
            "min": false,
            "show": true,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 1,
          "links": [ ],
          "nullPointMode": "null as zero",
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [ ],
          "spaceLength": 10,
          "span": 4,
          "stack": false,
          "steppedLine": true,
          "targets": [
            {
              "expr": "loki_boltdb_shipper_compact_tables_operation_duration_seconds{namespace=~\"$namespace\",job=\"loki\"}",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "duration",
              "legendLink": null,
              "step": 10
            }
          ],
          "thresholds": [ ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Compact and Mark Operations Duration",
          "description": "Time (in seconds) spent in compacting all the tables.",
          "tooltip": {
            "shared": true,
            "sort": 2,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": [ ]
          },
          "yaxes": [
            {
              "format": "s",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": 0,
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": false
            }
          ]
        },
        {
          "aliasColors": { },
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$ds_prometheus",
          "fill": 1,
          "id": 11,
          "legend": {
            "avg": false,
            "current": false,
            "max": false,
            "min": false,
            "show": true,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 1,
          "links": [ ],
          "nullPointMode": "null as zero",
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [ ],
          "spaceLength": 10,
          "span": 4,
          "stack": false,
          "steppedLine": true,
          "targets": [
            {
              "expr": "sum by (status)(rate(loki_boltdb_shipper_compact_tables_operation_total{namespace=~\"$namespace\",job=\"loki\"}[$__rate_interval]))",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "{{success}}",
              "legendLink": null,
              "step": 10
            }
          ],
          "thresholds": [ ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Compact and Mark Operations Per Status",
          "description": "Compaction operations with statuses.",
          "tooltip": {
            "shared": true,
            "sort": 2,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": [ ]
          },
          "yaxes": [
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": 0,
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": false
            }
          ]
        }
      ],
      "repeat": null,
      "repeatIteration": null,
      "repeatRowId": null,
      "showTitle": true,
      "title": "Compact and Mark",
      "titleSize": "h6"
    },
    {
      "collapsed": false,
      "datasource": null,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 26
      },
      "id": 110,
      "panels": [
        {
          "aliasColors": { },
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$ds_prometheus",
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 8,
            "w": 12,
            "x": 0,
            "y": 27
          },
          "hiddenSeries": false,
          "id": 12,
          "legend": {
            "avg": false,
            "current": false,
            "max": false,
            "min": false,
            "show": false,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 1,
          "nullPointMode": "null",
          "options": {
            "dataLinks": [ ]
          },
          "panels": [ ],
          "percentage": false,
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [ ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": true,
          "targets": [
            {
              "expr": "topk(10,sum by (tenant, reason) (rate(loki_discarded_samples_total{namespace=\"$namespace\",job=\"loki\"}[$__rate_interval])))",
              "legendFormat": "{{ tenant }} - {{ reason }}",
              "refId": "A"
            }
          ],
          "thresholds": [ ],
          "timeFrom": null,
          "timeRegions": [ ],
          "timeShift": null,
          "title": "Discarded Lines",
          "description": "The total number of samples that were discarded per second (by reason and tenant).",
          "tooltip": {
            "shared": false,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": [ ]
          },
          "yaxes": [
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "columns": [ ],
          "datasource": "$ds_prometheus",
          "fontSize": "100%",
          "gridPos": {
            "h": 8,
            "w": 12,
            "x": 12,
            "y": 27
          },
          "id": 13,
          "pageSize": null,
          "panels": [ ],
          "showHeader": true,
          "sort": {
            "col": 3,
            "desc": true
          },
          "styles": [
            {
              "alias": "Time",
              "align": "auto",
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "pattern": "Time",
              "type": "hidden"
            },
            {
              "alias": "",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "tenant",
              "thresholds": [ ],
              "type": "string",
              "unit": "short"
            },
            {
              "alias": "",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "reason",
              "thresholds": [ ],
              "type": "number",
              "unit": "short"
            },
            {
              "alias": "",
              "align": "right",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "decimals": 2,
              "pattern": "/.*/",
              "thresholds": [ ],
              "type": "number",
              "unit": "short"
            }
          ],
          "targets": [
            {
              "expr": "topk(10, sum by (tenant, reason) (sum_over_time(increase(loki_discarded_samples_total{namespace=\"$namespace\",job=\"loki\"}[$__rate_interval])[$__range:1m])))",
              "format": "table",
              "instant": true,
              "legendFormat": "{{ tenant }} - {{ reason }}",
              "refId": "A"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Discarded Lines Per Interval",
          "description": "The total number of samples that were discarded (by reason and tenant).",
          "transform": "table",
          "type": "table-old"
        },
        {
          "aliasColors": { },
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$ds_prometheus",
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 8,
            "w": 12,
            "x": 0,
            "y": 30
          },
          "hiddenSeries": false,
          "id": 14,
          "legend": {
            "avg": false,
            "current": false,
            "hideEmpty": true,
            "hideZero": true,
            "max": false,
            "min": false,
            "show": false,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 1,
          "nullPointMode": "null",
          "options": {
            "dataLinks": [ ]
          },
          "panels": [ ],
          "percentage": false,
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [ ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": true,
          "targets": [
            {
              "expr": "topk(10,sum by (tenant) (loki_ingester_memory_streams{job=\"loki\"}))",
              "legendFormat": "{{ tenant }}",
              "refId": "A"
            }
          ],
          "thresholds": [ ],
          "timeFrom": null,
          "timeRegions": [ ],
          "timeShift": null,
          "title": "Active Streams",
          "description": "The total number of streams in memory per tenant.",
          "tooltip": {
            "shared": false,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": [ ]
          },
          "yaxes": [
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        }
      ],
      "targets": [ ],
      "title": "Limits",
      "type": "row"
    }
  ],
  "schemaVersion": 14,
  "style": "dark",
  "tags": [
    "loki"
  ],
  "templating": {
    "list": [
      {
        "current": {
          "selected": true,
          "text": "default",
          "value": "default"
        },
        "hide": 0,
        "label": "Prometheus",
        "name": "ds_prometheus",
        "options": [],
        "query": "prometheus",
        "refresh": 1,
        "regex": "",
        "type": "datasource"
      },
      {
        "allValue": ".*",
        "current": {},
        "datasource": "$ds_prometheus",
        "hide": 0,
        "includeAll": false,
        "label": "Namespace",
        "multi": false,
        "name": "namespace",
        "options": [],
        "query": "label_values(up{job=\"loki\"}, namespace)",
        "refresh": 2,
        "regex": "",
        "sort": 1,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": "",
        "current": {},
        "datasource": "$ds_prometheus",
        "hide": 0,
        "includeAll": false,
        "label": "Service",
        "multi": false,
        "name": "service",
        "options": [],
        "query": "label_values(up{job=\"loki\",namespace=\"$namespace\"}, service)",
        "refresh": 2,
        "regex": "",
        "sort": 1,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": "",
        "current": {},
        "datasource": "$ds_prometheus",
        "hide": 2,
        "includeAll": true,
        "label": "Pod",
        "multi": true,
        "name": "pod",
        "options": [],
        "query": "label_values(up{job=\"loki\",namespace=\"$namespace\", service=\"$service\"}, pod)",
        "refresh": 2,
        "regex": "",
        "sort": 1,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      }
    ]
  },
  "time": {
    "from": "now-3h",
    "to": "now"
  },
  "timepicker": {
    "refresh_intervals": [
      "5s",
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ],
    "time_options": [
      "5m",
      "15m",
      "1h",
      "6h",
      "12h",
      "24h",
      "2d",
      "7d",
      "30d"
    ]
  },
  "timezone": "browser",
  "title": "Loki",
  "uid": "d8loki",
  "version": 0
}
